package com.wxming.quartzdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.WebApplicationInitializer;

/**
 * 注解@EnableTransactionManagement是开启事务。
 * 注解@SuppressWarnings("SpringFacetCodeInspection")
 * 注解@EnableScheduling
 * 注解@EnableAspectJAutoProxy都是网站项目启动类上的注解。
 * @author kyou on 2017/12/29 下午7:40
 */

@SpringBootApplication
@EnableTransactionManagement
public class QuartzDemoApplication extends SpringBootServletInitializer implements WebApplicationInitializer {

    public static void main(String[] args) {
        SpringApplication.run(QuartzDemoApplication.class, args);
    }
}